
//
//  HotlesTableViewCell.m
//  GoShops
//
//  Created by zcj on 15-12-5.
//  Copyright (c) 2015年 郑朝军. All rights reserved.
//

#import "HotlesTableViewCell.h"
#import "Grouble.h"

@interface HotlesTableViewCell()
@property (nonatomic,weak)UILabel * address;
@property (nonatomic,weak)UIImageView * leftImg;

@property (nonatomic,weak)UILabel * dataToday;
@property (nonatomic,weak)UILabel * dataTodayNext;

@property (nonatomic,weak)UILabel * dataLast;
@property (nonatomic,weak)UILabel * dataLastNext;

@property (nonatomic,weak)UILabel *fujinLable;

@property (nonatomic,weak)UIImageView * right;

@property (nonatomic,weak)UIButton * searchaBtn;

@end
@implementation HotlesTableViewCell

+ (instancetype)HotlesTableViewCell:(UITableView *)tableView
{
    static NSString *ID = @"hotlestablecell";
    HotlesTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[HotlesTableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ID];
    }
    // 设置不能选中,选中每反应
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return cell;
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UILabel * dataLast = [[UILabel alloc]init];
        dataLast.numberOfLines = 0;
        dataLast.text= @"12月06日";
        dataLast.font = [UIFont systemFontOfSize:22];
        dataLast.textColor = [UIColor blackColor];
        
        [self addSubview:dataLast];
        self.dataLast = dataLast;
        
        UILabel * dataTodayNext = [[UILabel alloc]init];
        dataTodayNext.numberOfLines = 0;
        dataTodayNext.text= @"今天  入住";
        dataTodayNext.font = [UIFont systemFontOfSize:10];
        dataTodayNext.textColor = ZCJColor(238, 238, 238);
        [self addSubview:dataTodayNext];
        [self addSubview:dataTodayNext];
        self.dataTodayNext = dataTodayNext;
        
        UILabel * dataToday = [[UILabel alloc]init];
        dataToday.numberOfLines = 0;
        dataToday.text= @"12月05日";
        dataToday.font = [UIFont systemFontOfSize:22];
        dataToday.textColor = [UIColor blackColor];
        
        [self addSubview:dataToday];
        self.dataToday = dataToday;
        
        
        
        UILabel * dataLastNext = [[UILabel alloc]init];
        dataLastNext.numberOfLines = 0;
        dataLastNext.text= @"明天  离店  共一晚";
        dataLastNext.font = [UIFont systemFontOfSize:10];
        dataLastNext.textColor = ZCJColor(238, 238, 238);
        [self addSubview:dataLastNext];
        [self addSubview:dataLastNext];
        self.dataLastNext = dataLastNext;
        

        UILabel *fujinLable = [[UILabel alloc]init];
        fujinLable.numberOfLines = 0;
        fujinLable.text= @"我的附近";
        fujinLable.font = [UIFont systemFontOfSize:15];
        fujinLable.textColor = [UIColor blackColor];
        
        [self addSubview:fujinLable];
        self.fujinLable = fujinLable;
        
        
        UIButton * searchaBtn = [[UIButton alloc]init];
        searchaBtn.backgroundColor = ZCJColor(245, 226, 112);
        [searchaBtn setTitle:@"查找" forState:UIControlStateNormal];
        searchaBtn.titleLabel.textAlignment = NSTextAlignmentCenter;
        searchaBtn.titleLabel.font = [UIFont systemFontOfSize:20];
        [self addSubview:searchaBtn];
        self.searchaBtn = searchaBtn;
        
       //UIImageView * right;

        // Initialization code
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
//    self
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
